<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ page isELIgnored="false" %> 

<%String path = request.getContextPath();%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	
    <link href="<%=path %>/css/index.css" type="text/css" rel="stylesheet" />
    <link href="<%=path %>/css/base.css" type="text/css" rel="stylesheet" />
    
    <style type="text/css">
		
	</style>
	

    <script type="text/javascript">
        function checkvvv()
		    {
		        var goodsName=document.formAdd.goodsName.value;
		        var str   =   goodsName.replace(/\s+/g,""); 
		        if(goodsName=="")
		        {
		            alert("请填写商品名称");
		            return false;
		        }
		        document.formAdd.submit();
		    }   	    
	</script>
	
	
</head>
  
<body>
	<div class="banner">
        <jsp:include flush="true" page="/qiantai/top.jsp"></jsp:include>
	</div>


    <div class="main01" style="margin-top: 10px;">
    	<!-- <h2>
            <span style="font-size: 18px;font-weight:900 ">查询商品</span>
            <div class="right" style="font-size: 14px;">dd</div>
        </h2> -->
        <div class="goods" style="height: 200px">
             <form action="<%=path %>/goodsRes.action" name="formAdd" method="post">
									     <table width="98%" >
											<tr >
											    <td width="12%" bgcolor="#FFFFFF" align="right">
											         商品名称：
											    </td>
											    <td width="88%" bgcolor="#FFFFFF" align="left">
											        <input type="text" name="goodsName" style="width: 400px;"/>
											    </td>
											</tr>
											<tr>
											    <td width="12%" bgcolor="#FFFFFF" align="right">&nbsp;
											    </td>
											    <td width="88%" bgcolor="#FFFFFF" align="left">
											       <input type="button" value="查询" onclick="checkvvv()" style="width: 80px;"/>&nbsp; 
											       <input type="reset" value="重置" style="width: 80px;"/>&nbsp;
											    </td>
											</tr>
										 </table>
								    </form>        
        </div>
    </div>
    
    
    <br/>
    <div class="bottom" style="position:absolute;bottom:0px;">
        <jsp:include flush="true" page="/qiantai/down.jsp"></jsp:include>
    </div>
</body>
</html>
